<?php
require_once('../../../wp-load.php');
$args=array(
  'orderby' => 'name',
  'order' => 'ASC',
  'hide_empty' => 0
  );
$categories=get_categories($args);
  foreach($categories as $category) { 
    echo  $category->name; 
    echo '<br />'; 
    } 
?>